﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Servico.Bovespa.ResumoFinanceiro.Service.ServiceImplementation.Translator.DataContractToBusinessEntity
{
    public class FinanceiroPendente
    {
        #region Construtor

        /// <summary>
        /// Construtor padrão
        /// </summary>
        public FinanceiroPendente()
        {
        }

        #endregion

        #region Metodos

        /// <summary>
        /// ToFiltroFinanceiroPendente
        /// </summary>
        /// <param name="from"></param>
        /// <returns></returns>
        public BusinessEntity.Parameter.FiltroFinanceiroPendente ToFiltroFinanceiroPendente(DataContract.Request.FiltroFinanceiroPendenteRequest from)
        {
            if (from == null) return null;

            return new Sinacor.Servico.Bovespa.ResumoFinanceiro.BusinessEntity.Parameter.FiltroFinanceiroPendente
            {
                CodigoBroker = from.CodigoBroker,
                CodigoCliente = from.CodigoCliente,
                DataPregao = from.DataPregao,
                IndicadorBroker = (BusinessEntity.Enum.TipoCliente)from.IndicadorBroker
            };
        }

        #endregion
    }
}
